package com.augmentum.login.common;

import java.util.HashMap;
import java.util.Map;

public class ModelView {

    private String view;
    private boolean isRedirect;
    private Map<String, Object> session = new HashMap<String, Object>();
    private Map<String, Object> parameter = new HashMap<String, Object>();

    public Map<String, Object> getParameter() {
        return parameter;
    }

    public String getView() {
        return view;
    }

    public void setView(String view) {
        this.view = view;
    }

    public boolean isRedirect() {
        return isRedirect;
    }

    public void setRedirect(boolean isRedirect) {
        this.isRedirect = isRedirect;
    }

    public void addSessionAttribute(String key, Object object) {
        session.put(key, object);
    }

    public Map<String, Object> getSession() {
        return session;
    }

    public void setSession(Map<String, Object> session) {
        this.session = session;
    }

    public void addObject(String key, Object value) {
        parameter.put(key, value);
    }
}
